#define _CRT_SECURE_NO_WARNINGS 1

#include "Stack.h"

void Test01(void)
{
	ST st;
	STInit(&st);

	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);
	STPrint(&st);

	StackPop(&st);
	//StackPop(&st);
	//StackPop(&st);
	//StackPop(&st);
	//StackPop(&st);
	STPrint(&st);

	STDataType top = StackTop(&st);
	printf("%d\r\n", top);

	int size = STSize(&st);
	printf("%d\r\n", size);

	STDestroy(&st);
}

int main()
{
	Test01();
	return 0;
}